<?php /* Template_ 2.2.4 2011/04/26 18:34:18 E:\PHP\www\sagapo\_DATA\template_\default\admin\anniversary\modify.html 000003085 */ ?>
<h2 class="anniversary">기념일 관리</h2>
<section class="anniversary-add">
	<script>
		$(function() {
			$("#anniversary-add").validate();
			$( "#anni-day" ).datepicker();
			
			// checkbox, radio 선택..
			$("input:radio[name='anni-is_solar'][value='<?php echo $TPL_VAR["result"]->ay_is_solar?>']").attr("checked","checked");
			$("input:radio[name='anni-display'][value='<?php echo $TPL_VAR["result"]->ay_display?>']").attr("checked","checked");
			$("input:checkbox[name='anni-main'][value='<?php echo $TPL_VAR["result"]->ay_main?>']").attr("checked","checked");
		});
	</script>
	<form name="anniversary-add" id="anniversary-add" method="post" action="<?php echo $TPL_VAR["action"]?>/doModify">
		<input type="hidden" name="seq" value="<?php echo $TPL_VAR["result"]->ay_seq?>" />
		<table class="table">
			<caption>
				성훈 & 게리 기념일 수정
			</caption>
			<colgroup>
				<col class="t-add" />
				<col />
			</colgroup>
			<tbody>
				<tr>
					<th scope="row" class="txt-right br"><label for="anni-name">기념일 명</label></th>
					<td><input type="text" name="anni-name" id="anni-name" class="anni-name required" placeholder="기념일 명" value="<?php echo $TPL_VAR["result"]->ay_name?>" /></td>
				</tr>
				<tr class="odd">
					<th scope="row" class="txt-right br"><label for="anni-solar">양/음력</label></th>
					<td>
						<input type="radio" name="anni-is_solar" id="anni-solar" value="1" checked="checked" />
						<label for="anni-solar">양력</label>
						<input type="radio" name="anni-is_solar" id="anni-lunar" value="0" />
						<label for="anni-lunar">음력</label>
					</td>
				</tr>
				<tr>
					<th scope="row" class="txt-right br"><label for="anni-day">기념일</label></th>
					<td><input type="text" name="anni-day" id="anni-day" class="anni-day" placeholder="기념일" value="<?php echo $TPL_VAR["result"]->date?>" /></td>
				</tr>
				<tr class="odd">
					<th scope="row" class="txt-right br"><label for="anni-d-day">계산방법</label></th>
					<td>
						<input type="radio" name="anni-display" id="anni-d-day" value="0" checked="checked" />
						<label for="anni-d-day">D-Day</label>
						<input type="radio" name="anni-display" id="anni-days" value="1" />
						<label for="anni-days">날짜수</label>
						<input type="radio" name="anni-display" id="anni-repeat" value="2" />
						<label for="anni-repeat">반복</label>
					</td>
				</tr>
				<tr>
					<th scope="row" class="txt-right br"><label for="anni-main">메인표시</label></th>
					<td>
						<input type="checkbox" name="anni-main" id="anni-main" value="1" />
						<label for="anni-main">메인표시</label>
					</td>
				</tr>
			</tbody>
		</table>
		<div class="button_area">
			<button type="submit">전송</button>
			<button type="button" class="cancel" onclick="history.back(-1)">뒤로</button>
		</div>
	</form>
</section>